﻿-IUser user = null;
-if(ViewData.ContainsKey("user"))
  -user = ViewData["user"] as IUser
  /#langdata
    %a{href="language.ivp/change/ru"} RU
    %a{href="language.ivp/change/en"} EN
  #userdata
    #userholder
      %span=user.Name
      %a{href=(user is Person) ? "privateoffice.ivp/logout" : "login.ivp/logout"} Выход
    .jclock=DateTime.Now.ToString("dd MMMM yyyy г. HH:mm")